//递归方法求5!
public class Program22 {
    long result = 1;
    public static void main(String[] args) {
        Program22 test = new Program22();
        System.out.println(test.recursionMulti(5));
    }
    public long recursionMulti(int x){
        if (x == 1){
            return result;
        }
        //递归过程还需要理解
        result = x*recursionMulti(x-1);
        return result;
    }
}
